package ModelLayer;

/**
 * Write a description of class Copy here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Copy
{
    // instance variables - replace the example below with your own
    private String serialNo;
    private int purchaseDate;
    private double purchasePrice;

    /**
     * Constructor for objects of class Copy
     */
    public Copy(String serialNo, int purchaseDate, double purchasePrice)
    {
        this.serialNo = serialNo;
        this.purchaseDate = purchaseDate;
        this.purchasePrice = purchasePrice;
    }

    /**
     * a method to get the 3 variables in this class
     * @return     serialNo, purchaseDate, purchasePrice
     */
    public String getSerialNo()
    {
        return serialNo;
    }

    public int getPurchaseDate()
    {
        return purchaseDate;
    }

    public double getPurchasePrice()
    {
        return purchasePrice;
    }

    public void updateCopy(String serialNo, int purchaseDate, double purchasePrice)
    {
        this.serialNo = serialNo;
        this.purchaseDate = purchaseDate;
        this.purchasePrice = purchasePrice;
    }
}
